import React from 'react'
import { Route, Switch } from 'react-router-dom'
import SideMenu from '../../components/sandbox/SideMenu'
import TopHeader from '../../components/sandbox/TopHeader'
import { Layout } from 'antd'
import UserList from './right-manage/UserList'
import RoleList from './right-manage/RoleList'
import RightList from './right-manage/RightList'
import Home from './home/Home'
import HappyList from './user-manage/HappyList'
import ConstellationList from './user-manage/ConstellationList'
import TaobaoElegantList from './user-manage/TaobaoElegantList'
import MusicList from './user-manage/MusicList'
// import MovieList from './user-manage/MovieList'
import BaidutranslationList from './user-manage/BaidutranslationList'
import WeiBoSeatchList from './user-manage/WeiBoSeatchList'
import ExpressageList from './user-manage/ExpressageList'
import GameList from './user-manage/GameList'



// josn 蛋疼视频
// {
//   "key": "/user-manage/Movie/list",
//   "title": "蛋疼视频",
//   "icon": "",
//   "pagepermisson": 1
// },

const { Content } = Layout

export default function NewsSandBox() {
  return (
    <Layout>
      <SideMenu></SideMenu>
      <Layout className="site-layout">
        <TopHeader></TopHeader>
        <Content
          style={{
            margin: '24px 16px',
            padding: 24,
            minHeight: 800,
            background: '#fff'
          }}
        >
          <Switch>
            <Route path='/home' component={Home}></Route>
            <Route path='/right-manage/list' component={UserList}></Route>
            <Route path='/user-manage/happy/list' component={HappyList}></Route>
            <Route path='/user-manage/constellation/list' component={ConstellationList}></Route>
            <Route path='/user-manage/TaobaoElegant/list' component={TaobaoElegantList}></Route>
            <Route path='/user-manage/Baidutranslation/list' component={BaidutranslationList}></Route>
            <Route path='/user-manage/Music/list' component={MusicList}></Route>
            <Route path='/user-manage/WeiBoSeatch/list' component={WeiBoSeatchList}></Route>
            <Route path='/user-manage/Expressage/list' component={ExpressageList}></Route>
            <Route path='/user-manage/Game/list' component={GameList}></Route>
            {/* <Route path='/user-manage/Movie/list' component={MovieList}></Route> */}
            <Route path='/right-manage/role/list' component={RoleList}></Route>
            <Route path='/right-manage/right/list' component={RightList}></Route>
          </Switch>
        </Content>
      </Layout>
    </Layout>
  )
}